package com.service.imp;

import com.pojo.Imginfo;
import com.service.UploadImageService;
import com.service.core.ServiceBase;

public class UploadImageServiceImp extends ServiceBase implements UploadImageService{

	@Override
	public void addImage(Integer userinfo_id, Imginfo img) {
		img = imageinfoDao.save(img);
		userinfoDao.update("update Userinfo as u set u.imgId="+img.getId()+" where u.id="+userinfo_id);
		
	}

	
}
